<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp" %>
<html>
<head>
<script language="JavaScript"  src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript">
function checkInput(thiz){
		if(thiz.value == null) return ;
		var reg = /^[0-9]\d*$/g;
		return reg.test(thiz.value);
	}
	function validateInput(){
		var flag = false;
		var objs = document.getElementsByName("amount");
		for(var i =0 ; i < objs.length;i++){
			if(!checkInput(objs[i])){
			    flag = true;
				Alert("移交数量有问题");
			    break;
			}
		}
		return flag;
	}
function buildStr(){
	    str = "";
	    var total = ${totalRows };
	    var rows = $('ec_table').rows;
		for(var i = 0; i<rows.length;i++){
			var objs = rows[i].getElementsByTagName("INPUT");
			for(var j =0; j<objs.length;j++){
				str = str+objs[j].value;
				if(j!= objs.length-1)
					str = str+",";
			}
			str = str+";";
		}
		return str;
	}
</script>
</head>
<body>
<div id="tab_Search"   style="height:150px;overflow:auto;">
<ec:ceTable items="goodsSet"
	action="${ctx}/occupation_joinHandleAction.do?method=initGoodsList"
	var="goodsItem"
	view="pmsNoPageView"
	styleClass="gridData2"
	rowsDisplayed="${totalRows }" >
	<ec:ceRow styleClass="grid" >
		<ec:ceColumn width="6%" styleClass="align_left" headerCell="pmsHeadrCell" title="序 号" property="thingHandoverCongfigsequence" showTitle="false">
			${goodsItem.thingHandoverCongfigsequence }
			<input type="hidden"  name="keyword" value="${goodsItem.keyword }" >
			<input type="hidden"  name="thingHandoverCongfigId" value="${goodsItem.thingHandoverCongfigId }" >
		</ec:ceColumn>
		<ec:ceColumn width="6%" styleClass="align_left" headerCell="pmsHeadrCell" title="房 号" property="houseNumber" showTitle="false">
			${goodsItem.houseNumber }
			<input type="hidden" name="houseNumber" value="${goodsItem.houseNumber }" size="4">
		</ec:ceColumn>
		<ec:ceColumn width="5%" styleClass="align_left" headerCell="pmsHeadrCell" title="名 称" property="thingHandoverCongfigName" />
		<ec:ceColumn width="7%" styleClass="align_left" headerCell="pmsHeadrCell" title="数 量" property="#" showTitle="false">
			<input type="text" name="amount" value="${goodsItem.amount }" size="4" >
		</ec:ceColumn>
		<ec:ceColumn width="10%" styleClass="align_left" headerCell="pmsHeadrCell" title="说明" property="thingHandoverCongfigdescription"/>

	</ec:ceRow>
</ec:ceTable>
</div>
</body>
</html>